package com.yeshine.opendata.service;

import com.yeshine.opendata.core.IService;
import com.yeshine.opendata.entity.Org;
import com.yeshine.opendata.utils.Result;
import org.apache.ibatis.annotations.Param;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by taohj on 2014/6/28.
 */
public interface IOrgService extends IService<Org>{

    public Result<Org> create(Org org,HttpServletRequest request);


    public Result<Org> modify(Org org,HttpServletRequest request);

    Result<Org> audit(Integer [] orgs, Integer auditStatus);


    Result<Org> addMember(@Param("org") Integer org,@Param("users")Integer [] users,@Param("role")Integer role);

    Result<Org> modifyMember(@Param("org") Integer org,@Param("users")Integer [] users,@Param("role")Integer role);

    Result<Org> removeMember(@Param("org") Integer org,@Param("users")Integer [] users);
}
